package com.sgb.kjwl.model.entity.transport;

import android.text.TextUtils;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;

public class VehicleDetail implements Serializable {

    private String carLenName;
    private String carNumber;
    private String carTypeName;
    private int driverAuthId;
    private Long driverAuthNo;
    private String heightHurdle;
    private String carImage;
    private Integer isDumper;
    private String name;
    private List<QueryTwoCarrierVO> queryCarrierVOList;
    private String telphone;
    private Long updateTime;
    private String userNo;
    private UserVo userVO;
    private List<Way> wayList;
    private Double weight;
    private Integer isManage;
    private String licensePlateColor;

    private String detailAddress;
    private double latitude;
    private double longitude;
    private String companyName;
    private String teamName;
    private String companyNo;
    private String teamNo;
    private String headImg;

    /**
     * 车辆功能
     */
    private String functionNos;

    /**
     * 司机年龄
     */
    private String carAge;
    /**
     * 驾龄
     */
    private String driverAge;

    /**2.0.6新增**/
    /**
     * 籍贯
     */
    private String nativePlace;
    /**
     * 民族
     */
    @SerializedName(value = "national", alternate = {"nation"})
    private String national;
    /**
     * 意向去向 省 no
     */
    private String intentionProvinceNo;
    /**
     * 意向去向 省 name
     */
    private String intentionProvinceName;
    /**
     * 意向去向 市 no
     */
    private String intentionCityNo;
    /**
     * 意向去向 市 name
     */
    private String intentionCityName;
    /**
     * 意向价格单位 1：元/趟，2：元/吨，3：元/方 4: 吨.1公里
     */
    private Integer freightUnit;
    /**
     * 意向价格
     */
    private Integer freight;
    Long authTime;
    /**
     * 车辆负责人姓名和电话
     * linkman :
     * linkmanPhone :
     */

    private String linkman;
    private String linkmanPhone;
    private String roleName;//角色名称
    private int terminal;
    private String img;
    private String shareUrl;
    private String theDriverName;

    public String getTheDriverName() {
        return theDriverName;
    }

    public void setTheDriverName(String theDriverName) {
        this.theDriverName = theDriverName;
    }

    public String getShareUrl() {
        return shareUrl;
    }

    public void setShareUrl(String shareUrl) {
        this.shareUrl = shareUrl;
    }

    public String getImg() {
        if(img==null){
            return "";
        }
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public int getTerminal() {
        return terminal;
    }

    public void setTerminal(int terminal) {
        this.terminal = terminal;
    }

    public String getRoleName() {
        if (roleName==null)
            return "";
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public Long getAuthTime() {
        return authTime;
    }

    public void setAuthTime(Long authTime) {
        this.authTime = authTime;
    }

    public String getNativePlace() {
        return nativePlace;
    }

    public void setNativePlace(String nativePlace) {
        this.nativePlace = nativePlace;
    }

    public String getNational() {
        return national;
    }

    public void setNational(String national) {
        this.national = national;
    }

    public String getIntentionProvinceNo() {
        return intentionProvinceNo;
    }

    public void setIntentionProvinceNo(String intentionProvinceNo) {
        this.intentionProvinceNo = intentionProvinceNo;
    }

    public String getIntentionProvinceName() {
        return intentionProvinceName;
    }

    public void setIntentionProvinceName(String intentionProvinceName) {
        this.intentionProvinceName = intentionProvinceName;
    }

    public String getIntentionCityNo() {
        return intentionCityNo;
    }

    public void setIntentionCityNo(String intentionCityNo) {
        this.intentionCityNo = intentionCityNo;
    }

    public String getIntentionCityName() {
        return intentionCityName;
    }

    public void setIntentionCityName(String intentionCityName) {
        this.intentionCityName = intentionCityName;
    }

    public Integer getFreightUnit() {
        return freightUnit;
    }

    public void setFreightUnit(Integer freightUnit) {
        this.freightUnit = freightUnit;
    }

    public String getFreightUnitString(){

            String str="";//*1：元/趟，2：元/吨，3：元/方
            if(freightUnit==null){
                str="元/吨";
                return str;
            }
            switch (freightUnit){
                case 1:
                    str="元/趟";
                    break;
                case 2:
                    str="元/吨";
                    break;
                case 3:
                    str="元/方";
                    break;
                case 4:
                    str="吨.1公里";
                    break;

            }
            return str;

    }

    public Integer getFreight() {
        return freight;
    }

    public void setFreight(Integer freight) {
        this.freight = freight;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public String getDetailAddress() {
        return detailAddress;
    }

    public void setDetailAddress(String detailAddress) {
        this.detailAddress = detailAddress;
    }

    public String getFunctionNos() {
        return functionNos;
    }

    public void setFunctionNos(String functionNos) {
        this.functionNos = functionNos;
    }

    public String getCarAge() {
        return carAge;
    }

    public void setCarAge(String carAge) {
        this.carAge = carAge;
    }

    public String getDriverAge() {
        return driverAge;
    }

    public void setDriverAge(String driverAge) {
        this.driverAge = driverAge;
    }

    public boolean getIsManage() {
        if (isManage == null) {
            return false;
        }
        // 值为1代表是后台管理段添加的用户，将隐藏聊天icon
        return isManage == 1;

    }

    public void setIsManage(Integer isManage) {
        this.isManage = isManage;
    }

    public UserVo getUserVO() {
        return userVO;
    }

    public void setUserVO(UserVo userVO) {
        this.userVO = userVO;
    }

    public String getCarImage() {
        return carImage;
    }

    public void setCarImage(String carImage) {
        this.carImage = carImage;
    }

    public void setIsDumper(Integer isDumper) {
        this.isDumper = isDumper;
    }

    public void setCarLenName(String carLenName) {
        this.carLenName = carLenName;
    }

    public String getCarLenName() {
        return carLenName;
    }

    public void setCarNumber(String carNumber) {
        this.carNumber = carNumber;
    }

    public String getCarNumber() {
        return carNumber;
    }

    public void setCarTypeName(String carTypeName) {
        this.carTypeName = carTypeName;
    }

    public String getCarTypeName() {
        return carTypeName;
    }

    public void setDriverAuthId(int driverAuthId) {
        this.driverAuthId = driverAuthId;
    }

    public int getDriverAuthId() {
        return driverAuthId;
    }

    public void setDriverAuthNo(Long driverAuthNo) {
        this.driverAuthNo = driverAuthNo;
    }

    public Long getDriverAuthNo() {
        return driverAuthNo;
    }

    public void setHeightHurdle(String heightHurdle) {
        this.heightHurdle = heightHurdle;
    }

    public String getHeightHurdle() {
        return heightHurdle;
    }

    public void setIsDumper(int isDumper) {
        this.isDumper = isDumper;
    }

    public Integer getIsDumper() {
        return isDumper;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setQueryTwoCarrierVO(List<QueryTwoCarrierVO> queryCarrierVOList) {
        this.queryCarrierVOList = queryCarrierVOList;
    }

    public List<QueryTwoCarrierVO> getQueryTwoCarrierVO() {
        return queryCarrierVOList;
    }

    public void setTelphone(String telphone) {
        this.telphone = telphone;
    }

    public String getTelphone() {
        return telphone;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

    public Long getUpdateTime() {
        return updateTime;
    }

    public void setUserNo(String userNo) {
        this.userNo = userNo;
    }

    public String getUserNo() {
        return userNo;
    }

    public void setWay(List<Way> wayList) {
        this.wayList = wayList;
    }

    public List<Way> getWay() {

        return wayList;
    }

    public void setWeight(Double weight) {
        this.weight = weight;
    }

    public Double getWeight() {
        return weight;
    }

    public String getLicensePlateColor() {
        if (TextUtils.isEmpty(licensePlateColor)) {
            licensePlateColor = "";
        } else if ("1".equals(licensePlateColor)) {
            licensePlateColor = "蓝色";
        } else if ("2".equals(licensePlateColor)) {
            licensePlateColor = "黄色";
        } else if ("9".equals(licensePlateColor)) {
            licensePlateColor = "绿色";
        }
        return licensePlateColor;
    }

    public void setLicensePlateColor(String licensePlateColor) {
        this.licensePlateColor = licensePlateColor;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getTeamName() {
        return teamName;
    }

    public void setTeamName(String teamName) {
        this.teamName = teamName;
    }

    public String getCompanyNo() {
        return companyNo;
    }

    public void setCompanyNo(String companyNo) {
        this.companyNo = companyNo;
    }

    public String getTeamNo() {
        return teamNo;
    }

    public void setTeamNo(String teamNo) {
        this.teamNo = teamNo;
    }

    public String getHeadImg() {
        return headImg;
    }

    public void setHeadImg(String headImg) {
        this.headImg = headImg;
    }

    public String getLinkman() {
        return linkman;
    }

    public void setLinkman(String linkman) {
        this.linkman = linkman;
    }

    public String getLinkmanPhone() {
        return linkmanPhone;
    }

    public void setLinkmanPhone(String linkmanPhone) {
        this.linkmanPhone = linkmanPhone;
    }
}
